PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Waveform / Wire Spirograph / p wrap twist fold and starch.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=2 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=1.000 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.000 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=0 |
| 13 | bAdditiveWaves=0 |
| 14 | bWaveDots=0 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=0 |
| 17 | bMaximizeWaveColor=0 |
| 18 | bTexWrap=0 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=0 |
| 22 | bDarken=0 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.001 |
| 26 | fWaveScale=0.010 |
| 27 | fWaveSmoothing=0.270 |
| 28 | fWaveParam=-0.380 |
| 29 | fModWaveAlphaStart=0.710 |
| 30 | fModWaveAlphaEnd=1.300 |
| 31 | fWarpAnimSpeed=1.000 |
| 32 | fWarpScale=1.331 |
| 33 | fZoomExponent=1.00000 |
| 34 | fShader=0.000 |
| 35 | zoom=1.00049 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00000 |
| 40 | dy=0.00000 |
| 41 | warp=0.01000 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=1.000 |
| 45 | wave_g=1.000 |
| 46 | wave_b=1.000 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.500 |
| 49 | ob_size=0.002 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.260 |
| 55 | ib_r=0.250 |
| 56 | ib_g=0.250 |
| 57 | ib_b=0.250 |
| 58 | ib_a=0.000 |
| 59 | nMotionVectorsX=64.000 |
| 60 | nMotionVectorsY=48.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.000 |
| 63 | mv_l=0.850 |
| 64 | mv_r=0.500 |
| 65 | mv_g=0.500 |
| 66 | mv_b=0.500 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=512 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=0 |
| 80 | wavecode_0_bDrawThick=0 |
| 81 | wavecode_0_bAdditive=0 |
| 82 | wavecode_0_scaling=1.00000 |
| 83 | wavecode_0_smoothing=0.50000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=1.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_point1=x = .5 + (bass*.2)*sin(sample*2*(time*10*treb)); |
| 89 | wave_0_per_point2=y = .5 + (bass*.2)*cos(sample*2*(time*10*treb)); |
| 90 | wave_0_per_point3=r = 1 + .5*sin(sample*.10+(time*10*bass)); |
| 91 | wave_0_per_point4=g = 1 + .5*sin(sample*2+(time*50*treb)); |
| 92 | wave_0_per_point5=b = 1 + .5*sin(sample*5+(time*20*mid)); |
| 93 | wave_0_per_point6=a = r; |
| 94 | wavecode_1_enabled=0 |
| 95 | wavecode_1_samples=512 |
| 96 | wavecode_1_sep=0 |
| 97 | wavecode_1_bSpectrum=0 |
| 98 | wavecode_1_bUseDots=0 |
| 99 | wavecode_1_bDrawThick=0 |
| 100 | wavecode_1_bAdditive=0 |
| 101 | wavecode_1_scaling=1.00000 |
| 102 | wavecode_1_smoothing=0.50000 |
| 103 | wavecode_1_r=1.000 |
| 104 | wavecode_1_g=1.000 |
| 105 | wavecode_1_b=1.000 |
| 106 | wavecode_1_a=1.000 |
| 107 | wavecode_2_enabled=0 |
| 108 | wavecode_2_samples=512 |
| 109 | wavecode_2_sep=0 |
| 110 | wavecode_2_bSpectrum=0 |
| 111 | wavecode_2_bUseDots=0 |
| 112 | wavecode_2_bDrawThick=0 |
| 113 | wavecode_2_bAdditive=0 |
| 114 | wavecode_2_scaling=1.00000 |
| 115 | wavecode_2_smoothing=0.50000 |
| 116 | wavecode_2_r=1.000 |
| 117 | wavecode_2_g=1.000 |
| 118 | wavecode_2_b=1.000 |
| 119 | wavecode_2_a=1.000 |
| 120 | wavecode_3_enabled=0 |
| 121 | wavecode_3_samples=512 |
| 122 | wavecode_3_sep=0 |
| 123 | wavecode_3_bSpectrum=0 |
| 124 | wavecode_3_bUseDots=0 |
| 125 | wavecode_3_bDrawThick=0 |
| 126 | wavecode_3_bAdditive=0 |
| 127 | wavecode_3_scaling=1.00000 |
| 128 | wavecode_3_smoothing=0.50000 |
| 129 | wavecode_3_r=1.000 |
| 130 | wavecode_3_g=1.000 |
| 131 | wavecode_3_b=1.000 |
| 132 | wavecode_3_a=1.000 |
| 133 | shapecode_0_enabled=0 |
| 134 | shapecode_0_sides=3 |
| 135 | shapecode_0_additive=0 |
| 136 | shapecode_0_thickOutline=0 |
| 137 | shapecode_0_textured=0 |
| 138 | shapecode_0_num_inst=1 |
| 139 | shapecode_0_x=0.500 |
| 140 | shapecode_0_y=0.500 |
| 141 | shapecode_0_rad=0.34000 |
| 142 | shapecode_0_ang=0.53000 |
| 143 | shapecode_0_tex_ang=0.00000 |
| 144 | shapecode_0_tex_zoom=1.00000 |
| 145 | shapecode_0_r=0.560 |
| 146 | shapecode_0_g=0.360 |
| 147 | shapecode_0_b=0.000 |
| 148 | shapecode_0_a=1.000 |
| 149 | shapecode_0_r2=0.900 |
| 150 | shapecode_0_g2=1.000 |
| 151 | shapecode_0_b2=0.000 |
| 152 | shapecode_0_a2=0.000 |
| 153 | shapecode_0_border_r=0.000 |
| 154 | shapecode_0_border_g=0.000 |
| 155 | shapecode_0_border_b=0.000 |
| 156 | shapecode_0_border_a=0.000 |
| 157 | shape_0_per_frame1=ang = ang + time; |
| 158 | shapecode_1_enabled=0 |
| 159 | shapecode_1_sides=3 |
| 160 | shapecode_1_additive=0 |
| 161 | shapecode_1_thickOutline=0 |
| 162 | shapecode_1_textured=0 |
| 163 | shapecode_1_num_inst=1 |
| 164 | shapecode_1_x=0.500 |
| 165 | shapecode_1_y=0.500 |
| 166 | shapecode_1_rad=0.41000 |
| 167 | shapecode_1_ang=0.00000 |
| 168 | shapecode_1_tex_ang=0.00000 |
| 169 | shapecode_1_tex_zoom=1.00000 |
| 170 | shapecode_1_r=0.000 |
| 171 | shapecode_1_g=0.800 |
| 172 | shapecode_1_b=0.700 |
| 173 | shapecode_1_a=1.000 |
| 174 | shapecode_1_r2=0.000 |
| 175 | shapecode_1_g2=0.400 |
| 176 | shapecode_1_b2=1.000 |
| 177 | shapecode_1_a2=0.000 |
| 178 | shapecode_1_border_r=1.000 |
| 179 | shapecode_1_border_g=1.000 |
| 180 | shapecode_1_border_b=1.000 |
| 181 | shapecode_1_border_a=0.000 |
| 182 | shape_1_per_frame1=ang = ang - time*.333; |
| 183 | shapecode_2_enabled=0 |
| 184 | shapecode_2_sides=3 |
| 185 | shapecode_2_additive=0 |
| 186 | shapecode_2_thickOutline=0 |
| 187 | shapecode_2_textured=0 |
| 188 | shapecode_2_num_inst=1 |
| 189 | shapecode_2_x=0.500 |
| 190 | shapecode_2_y=0.500 |
| 191 | shapecode_2_rad=0.21000 |
| 192 | shapecode_2_ang=0.00000 |
| 193 | shapecode_2_tex_ang=0.00000 |
| 194 | shapecode_2_tex_zoom=1.00000 |
| 195 | shapecode_2_r=0.840 |
| 196 | shapecode_2_g=0.000 |
| 197 | shapecode_2_b=0.000 |
| 198 | shapecode_2_a=1.000 |
| 199 | shapecode_2_r2=1.000 |
| 200 | shapecode_2_g2=0.580 |
| 201 | shapecode_2_b2=0.000 |
| 202 | shapecode_2_a2=0.000 |
| 203 | shapecode_2_border_r=1.000 |
| 204 | shapecode_2_border_g=1.000 |
| 205 | shapecode_2_border_b=1.000 |
| 206 | shapecode_2_border_a=0.000 |
| 207 | shape_2_per_frame1=ang = ang + time*4; |
| 208 | shapecode_3_enabled=0 |
| 209 | shapecode_3_sides=4 |
| 210 | shapecode_3_additive=0 |
| 211 | shapecode_3_thickOutline=0 |
| 212 | shapecode_3_textured=0 |
| 213 | shapecode_3_num_inst=1 |
| 214 | shapecode_3_x=0.500 |
| 215 | shapecode_3_y=0.500 |
| 216 | shapecode_3_rad=0.10000 |
| 217 | shapecode_3_ang=0.00000 |
| 218 | shapecode_3_tex_ang=0.00000 |
| 219 | shapecode_3_tex_zoom=1.00000 |
| 220 | shapecode_3_r=1.000 |
| 221 | shapecode_3_g=0.000 |
| 222 | shapecode_3_b=0.000 |
| 223 | shapecode_3_a=1.000 |
| 224 | shapecode_3_r2=0.000 |
| 225 | shapecode_3_g2=1.000 |
| 226 | shapecode_3_b2=0.000 |
| 227 | shapecode_3_a2=0.000 |
| 228 | shapecode_3_border_r=1.000 |
| 229 | shapecode_3_border_g=1.000 |
| 230 | shapecode_3_border_b=1.000 |
| 231 | shapecode_3_border_a=0.100 |
| 232 | per_frame_1=//martin no religion / my omniversal absence for changing the background light |
| 233 | per_frame_2=vb = vb*0.95 + (1-vb)*pow(abs(bass-bass_att),2)*0.02; |
| 234 | per_frame_3=vvb = vvb*0.95 + (1-vvb)*vb*0.01; |
| 235 | per_frame_4=vm = vm*0.95 + (1-vm)*pow(abs(mid-mid_att),2)*0.02; |
| 236 | per_frame_5=vvm = vvm*0.95 + (1-vvm)*vm*0.01; |
| 237 | per_frame_6=vt = vt*0.95 + (1-vt)*pow(abs(treb-treb_att),2)*0.02; |
| 238 | per_frame_7=vvt = vvt*0.95 + (1-vvt)*vt*0.01; |
| 239 | per_frame_8=vvb = min(1,max(0,vvb)); |
| 240 | per_frame_9=vvm = min(1,max(0,vvm)); |
| 241 | per_frame_10=vvt = min(1,max(0,vvt)); |
| 242 | per_frame_11=runbass=runbass+vvb; |
| 243 | per_frame_12=runmids=runmids+vvm ; |
| 244 | per_frame_13=runtreb=runtreb+vvt; |
| 245 | per_frame_14=pi23=4*asin(-1)*.33333333333333; |
| 246 | per_frame_15=atime=(runtreb+runmids+runbass)*1.85; |
| 247 | per_frame_16=q8= (sin(atime-0*pi23)+1)*.4; |
| 248 | per_frame_17=q9= (sin(atime-1*pi23)+1)*.4; |
| 249 | per_frame_18=q10=(sin(atime-2*pi23)+1)*.4; |
| 250 | per_frame_19= |
| 251 | per_frame_20=vb = vb*0.95 + (1-vb)*pow(abs(bass-bass_att),2)*0.02; |
| 252 | per_frame_21=vvb = vvb*0.95 + (1-vvb)*vb*0.01; |
| 253 | per_frame_22=vm = vm*0.95 + (1-vm)*pow(abs(mid-mid_att),2)*0.02; |
| 254 | per_frame_23=vvm = vvm*0.95 + (1-vvm)*vm*0.01; |
| 255 | per_frame_24=vt = vt*0.95 + (1-vt)*pow(abs(treb-treb_att),2)*0.02; |
| 256 | per_frame_25=vvt = vvt*0.95 + (1-vvt)*vt*0.01; |
| 257 | per_frame_26=vvb = min(1,max(0,vvb)); |
| 258 | per_frame_27=vvm = min(1,max(0,vvm)); |
| 259 | per_frame_28=vvt = min(1,max(0,vvt)); |
| 260 | per_frame_29=q1 = (vvt+vvm+vvb)*10; |
| 261 | per_frame_30=q2 = (vvt+vvm+vvb)*10; |
| 262 | per_frame_31=q3 = (vvt+vvm+vvb)*10; |
| 263 | per_frame_32=q4 =(vvt+vvm+vvb)*10; |
| 264 | per_frame_33=q5 =(vvt+vvm+vvb)*10; |
| 265 | per_frame_34=q6 =(vvt+vvm+vvb)*10; |
| 266 | per_frame_35=q4 =(vvt+vvm+vvb)*10; |
| 267 | per_frame_36=q5 =(vvt+vvm+vvb)*10; |
| 268 | per_frame_37=q6 =(vvt+vvm+vvb)*10; |
| 269 | per_frame_38=q7 =(vvt+vvm+vvb)*10; |
| 270 | per_frame_39=q11=(vvt+vvm+vvb)*10; |
| 271 | per_frame_40=q12=(vvt+vvm+vvb)*10; |
| 272 | per_frame_41=q13=(vvt+vvm+vvb)*10; |
| 273 | per_frame_42=q14=(vvt+vvm+vvb)*10; |
| 274 | per_frame_43=q15=(vvt+vvm+vvb)*10; |
| 275 | per_frame_44=q16=(vvt+vvm+vvb)*10; |
| 276 | per_frame_45=q17=(vvt+vvm+vvb)*10; |
| 277 | per_frame_46=q18=(vvt+vvm+vvb)*10; |
| 278 | per_frame_47=q19=(vvt+vvm+vvb)*10; |
| 279 | per_frame_48=q20=(vvt+vvm+vvb)*10; |
| 280 | per_frame_49=q21=(vvt+vvm+vvb)*10; |
| 281 | per_frame_50=q22=(vvt+vvm+vvb)*10; |
| 282 | per_frame_51=q23=(vvt+vvm+vvb)*10; |
| 283 | per_frame_52=q24=(vvt+vvm+vvb)*10; |
| 284 | per_frame_53=q25=(vvt+vvm+vvb)*10; |
| 285 | per_frame_54=q26=(vvt+vvm+vvb)*10; |
| 286 | per_frame_55=q27=(vvt+vvm+vvb)*10; |
| 287 | per_frame_56=q28=(vvt+vvm+vvb)*10; |
| 288 | per_frame_57=q29=(vvt+vvm+vvb)*10; |
| 289 | per_frame_58=q30=(vvt+vvm+vvb)*10; |
| 290 | per_frame_59=q31=(vvt+vvm+vvb)*10; |
| 291 | per_frame_60=q32=(vvt+vvm+vvb)*10; |
| 292 | per_frame_61= |
| 293 | per_frame_62=warp = 0; |
| 294 | per_frame_63= |
| 295 | per_frame_64=tic = min(time-tin,.1); |
| 296 | per_frame_65=tin = time; |
| 297 | per_frame_66= |
| 298 | per_frame_67=ra = 1/tic*.25; |
| 299 | per_frame_68= |
| 300 | per_frame_69=treb_avg = tic*(treb_avg*(1/tic - ra) + ra*treb); |
| 301 | per_frame_70=mid_avg = tic*(mid_avg*(1/tic - ra) + ra*mid); |
| 302 | per_frame_71=bass_avg = tic*(bass_avg*(1/tic - ra) + ra*bass); |
| 303 | per_frame_72= |
| 304 | per_frame_73=tt = tt + tic*treb; |
| 305 | per_frame_74=mt = mt + tic*mid; |
| 306 | per_frame_75=bt = bt + tic*bass; |
| 307 | per_frame_76= |
| 308 | per_frame_77=q1 = tt*4; |
| 309 | per_frame_78=q2 = mt*4; |
| 310 | per_frame_79=q3 = bt*4; |
| 311 | per_frame_80= |
| 312 | per_frame_81=st = .1; |
| 313 | per_frame_82=base = .15; |
| 314 | per_frame_83=q4 = base + treb_avg*st; |
| 315 | per_frame_84=q5 = base + mid_avg*st; |
| 316 | per_frame_85=q6 = base + bass_avg*st; |
| 317 | per_pixel_1=ti = time*.3; |
| 318 | per_pixel_2= |
| 319 | per_pixel_3=mx = x - .5 + .25*(sin(ti*1.1278) + sin(ti*.7458)); |
| 320 | per_pixel_4=my = y - .5 + .25*(sin(ti*.9454) + sin(ti*1.2378)); |
| 321 | per_pixel_5=zm = cos(pow(mx*mx*1.5 + my*my,.5)*16 - q1)*q4; |
| 322 | per_pixel_6=dx = zm*(x-mx); |
| 323 | per_pixel_7=dy = zm*(y-my); |
| 324 | per_pixel_8= |
| 325 | per_pixel_9=mx = x - .5 + .25*(sin(ti*1.3488) + sin(ti*.8552)); |
| 326 | per_pixel_10=my = y - .5 + .25*(sin(ti*.7366) + sin(ti*1.1447)); |
| 327 | per_pixel_11=zm = cos(pow(mx*mx*1.5 + my*my,.5)*16 - q2)*q5; |
| 328 | per_pixel_12=dx = dx + zm*mx; |
| 329 | per_pixel_13=dy = dy + zm*my; |
| 330 | per_pixel_14= |
| 331 | per_pixel_15=mx = x - .5 + .25*(sin(ti*1.3544) + sin(ti*.8926)); |
| 332 | per_pixel_16=my = y - .5 + .25*(sin(ti*.9021) + sin(ti*1.2468)); |
| 333 | per_pixel_17=zm = cos(pow(mx*mx*1.5 + my*my,.5)*16 - q3)*q6; |
| 334 | per_pixel_18=dx = dx + zm*mx; |
| 335 | per_pixel_19=dy = dy + zm*my; |
| 336 | warp_1=`sampler sampler_grad16; |
| 337 | warp_2=` |
| 338 | warp_3=`float2 cmul(float2 mul1, float2 mul2) { |
| 339 | warp_4=` float2 mul = float2(mul1.x*mul2.x - mul1.y*mul2.y, mul1.y*mul2.x + mul1.x*mul2.y); |
| 340 | warp_5=` return mul; |
| 341 | warp_6=`} |
| 342 | warp_7=`float2 cdiv(float2 div1, float2 div2) { |
| 343 | warp_8=` float2 div = float2( (div1.x*div2.x + div1.y*div2.y)/(div2.x*div2.x + div2.y*div2.y), |
| 344 | warp_9=` (div1.y*div2.x + div1.x*div2.y)/(div2.x*div2.x + div2.y*div2.y) ); |
| 345 | warp_10=` return div; |
| 346 | warp_11=`} |
| 347 | warp_12=`float2 cpow(float2 base, float ex) { |
| 348 | warp_13=` float moduz = sqrt(base.x*base.x + base.y*base.y); |
| 349 | warp_14=` float thetaz = atan2(base.y, base.x); |
| 350 | warp_15=` float2 pow = float2(pow(moduz, ex)*cos(thetaz*ex), pow(moduz, ex)*sin(thetaz*ex)); |
| 351 | warp_16=` return pow; |
| 352 | warp_17=` } |
| 353 | warp_18=` float2 cexp(float2 base, float2 ex) { |
| 354 | warp_19=` float moduz = sqrt(base.x*base.x + base.y*base.y); |
| 355 | warp_20=` float thetaz = atan2(base.y, base.x); |
| 356 | warp_21=` float mp = pow(moduz, ex.x)*exp(-ex.y*thetaz); |
| 357 | warp_22=` float2 sol = mp*float2(cos(ex.y*log(moduz) + ex.x*thetaz), sin(ex.y*log(moduz) + ex.x*thetaz)); |
| 358 | warp_23=` return sol; |
| 359 | warp_24=` } |
| 360 | warp_25=` |
| 361 | warp_26=`shader_body |
| 362 | warp_27=`{ |
| 363 | warp_28=`// F(Z) = sqrt(Z^-4+C) |
| 364 | warp_29=` float2 zoom = lerp(2,2.5,q20); |
| 365 | warp_30=` float2 c = float2(q4, q5); |
| 366 | warp_31=` float2 uv1 = (float2(uv.x-0.5, uv.y-0.5))*zoom; |
| 367 | warp_32=` |
| 368 | warp_33=` int n = 0; |
| 369 | warp_34=` |
| 370 | warp_35=` for(n=0; n<5; n++) { |
| 371 | warp_36=` float2 tmp = cpow(uv1,-4)+c; |
| 372 | warp_37=` uv1 = cpow(tmp,0.5); |
| 373 | warp_38=` } |
| 374 | warp_39=` |
| 375 | warp_40=` float domain = dot(uv1,uv1); |
| 376 | warp_41=` ret = lerp(float3(1-q11, 1-q12, 1-q13), ret, saturate(domain-2)); |
| 377 | warp_42=` ret = lerp(float3(0,0,0), ret, saturate(domain-1)); |
| 378 | warp_43=` float3 reta = tex2D(sampler_grad16, uv1); |
| 379 | warp_44=` ret += reta; |
| 380 | warp_45=`} |
| 381 | warp_46=` |
| 382 | comp_1=`shader_body |
| 383 | comp_2=`{ |
| 384 | comp_3=` |
| 385 | comp_4=`uv = 0.5 + (uv-0.5)*0.98; |
| 386 | comp_5=` float2 d = texsize.zw*4; |
| 387 | comp_6=` float3 dx = ( GetBlur1(uv+float2(1,0)*d)-GetBlur1(uv-float2(1,0)*d) ); |
| 388 | comp_7=` float3 dy = ( GetBlur1(uv+float2(0,1)*d)-GetBlur1(uv-float2(0,1)*d) ); |
| 389 | comp_8=` |
| 390 | comp_9=`float4 noise = tex3D(sampler_noisevol_hq, ((uv.xyy+float3(lum(dx),lum(dy),0)*0.5)*texsize.xyy*texsize_noisevol_hq.zww).xyz*float3(1,1,0)*0.05 |
| 391 | comp_10=` + time*float3(0,0,1)*0.2 ); |
| 392 | comp_11=`uv -= float2(lum(dx),lum(dy))*0.04; |
| 393 | comp_12=`ret = abs(GetPixel(uv)+GetBlur1(uv)-GetBlur2(uv)-GetBlur3(uv)); |
| 394 | comp_13=`ret-=roam_sin.wzy*roam_cos; |
| 395 | comp_14=`ret *= lum(noise)*3; |
| 396 | comp_15=`ret = pow(ret,0.5); |
| 397 | comp_16=`ret=1-ret; |
| 398 | comp_17=`} |